Produced by Araxis Merge on 2023-03-13 03:00:44 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Porto v4.0.4/Porto Theme/app/code/Mageplaza/LayeredNavigation/view/frontend/templates | filter.phtml | 2016-09-27 16:15:52 +0000 |
| 2 | Porto v4.0.5/Porto Theme/app/code/Mageplaza/LayeredNavigation/view/frontend/templates | filter.phtml | 2016-09-27 16:15:52 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 1 | 136 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | <ol class="items"> | 1 | <ol class="items"> | |||
| 2 | <?php foreach ($filterItems as $filterItem): ?> | 2 | <?php foreach ($filterItems as $filterItem): ?> | |||
| 3 | <?php | 3 | <?php | |||
| 4 | $filter = $filterItem->getFilter(); | 4 | $filter = $filterItem->getFilter(); | |||
| 5 | $attributeModel = $filter->getData('attribute_model'); | 5 | $attributeModel = $filter->getData('attribute_model'); | |||
| 6 | $inputName = $filter->getRequestVar(); | 6 | $inputName = $filter->getRequestVar(); | |||
| 7 | $requestValue = $block->getRequest()->getParam($inputName); | 7 | $requestValue = $block->getRequest()->getParam($inputName); | |||
| 8 | $requestArray = $requestValue ? explode(',', $requestValue) : []; | 8 | $requestArray = $requestValue ? explode(',', $requestValue) : []; | |||
| 9 | $url = in_array($filterItem->getValue(), $requestArray) ? $filterItem->getRemoveUrl() : $filterItem->getUrl(); | 9 | $url = in_array($filterItem->getValue(), $requestArray) ? $filterItem->getRemoveUrl() : $filterItem->getUrl(); | |||
| 10 | ?> | 10 | ?> | |||
| 11 | <li class="item"> | 11 | <li class="item"> | |||
| 12 | <?php if($attributeModel && $attributeModel->getFrontendInput() == 'price'): ?> | 12 | <?php if($attributeModel && $attributeModel->getFrontendInput() == 'price'): ?> | |||
| 13 | <?php | 13 | <?php | |||
| 14 | $productCollection = $filter->getLayer()->getProductCollection(); | 14 | $productCollection = $filter->getLayer()->getProductCollection(); | |||
| 15 | $productCollectionClone = $productCollection->getCollectionClone(); | 15 | $productCollectionClone = $productCollection->getCollectionClone(); | |||
| 16 | $collection = $productCollectionClone | 16 | $collection = $productCollectionClone | |||
| 17 | ->removeAttributeSearch(['price.from', 'price.to']); | 17 | ->removeAttributeSearch(['price.from', 'price.to']); | |||
| 18 | 18 | |||||
| 19 | $min = $collection->getMinPrice(); | 19 | $min = $collection->getMinPrice(); | |||
| 20 | $max = $collection->getMaxPrice(); | 20 | $max = $collection->getMaxPrice(); | |||
| 21 | 21 | |||||
| 22 | list($from, $to) = $requestValue ? explode('-', $requestValue) : [$min, $max]; | 22 | list($from, $to) = $requestValue ? explode('-', $requestValue) : [$min, $max]; | |||
| 23 | ?> | 23 | ?> | |||
| 24 | <div id="ln_price_attribute"> | 24 | <div id="ln_price_attribute"> | |||
| 25 | <div id="ln_price_slider"></div> | 25 | <div id="ln_price_slider"></div> | |||
| 26 | <div id="ln_price_text"></div> | 26 | <div id="ln_price_text"></div> | |||
| 27 | </div> | 27 | </div> | |||
| 28 | <script type="text/x-magento-init"> | 28 | <script type="text/x-magento-init"> | |||
| 29 | { | 29 | { | |||
| 30 | "#ln_price_attribute": { | 30 | "#ln_price_attribute": { | |||
| 31 | "Mageplaza_LayeredNavigation/js/price/slider": { | 31 | "Mageplaza_LayeredNavigation/js/price/slider": { | |||
| 32 | "selectedFrom": <?php echo $from ?>, | 32 | "selectedFrom": <?php echo $from ?>, | |||
| 33 | "selectedTo": <?php echo $to ?>, | 33 | "selectedTo": <?php echo $to ?>, | |||
| 34 | "minValue": <?php echo $min ?>, | 34 | "minValue": <?php echo $min ?>, | |||
| 35 | "maxValue": <?php echo $max ?>, | 35 | "maxValue": <?php echo $max ?>, | |||
| 36 | "priceFormat": <?php /* @escapeNotVerified */ echo $this->helper('Magento\Tax\Helper\Data')->getPriceFormat($block->getStore()); ?>, | 36 | "priceFormat": <?php /* @escapeNotVerified */ echo $this->helper('Magento\Tax\Helper\Data')->getPriceFormat($block->getStore()); ?>, | |||
| 37 | "ajaxUrl": <?php /* @escapeNotVerified */ echo $this->helper('Magento\Framework\Json\Helper\Data')->jsonEncode($filterItem->getUrl()) ?> | 37 | "ajaxUrl": <?php /* @escapeNotVerified */ echo $this->helper('Magento\Framework\Json\Helper\Data')->jsonEncode($filterItem->getUrl()) ?> | |||
| 38 | } | 38 | } | |||
| 39 | } | 39 | } | |||
| 40 | } | 40 | } | |||
| 41 | </script> | 41 | </script> | |||
| 42 | <?php break; ?> | 42 | <?php break; ?> | |||
| 43 | <?php else: ?> | 43 | <?php else: ?> | |||
| 44 | » » » » <?php if ($filterItem->getCount() > 0): ?> | 44 | » » » » <?php if ($filterItem->getCount() > 0): ?> | |||
| 45 | <a href="<?php echo $block->escapeUrl($url) ?>"> | 45 | <a href="<?php echo $block->escapeUrl($url) ?>"> | |||
| 46 | <?php if($attributeModel && $attributeModel->getFrontendInput() == 'multiselect'): ?> | 46 | <?php if($attributeModel && $attributeModel->getFrontendInput() == 'multiselect'): ?> | |||
| 47 | <input type="checkbox" <?php echo in_array($filterItem->getValue(), $requestArray) ? 'checked="checked"' : '' ?> /> | 47 | <input type="checkbox" <?php echo in_array($filterItem->getValue(), $requestArray) ? 'checked="checked"' : '' ?> /> | |||
| 48 | <?php endif; ?> | 48 | <?php endif; ?> | |||
| 49 | » » » » » » <?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?> | 49 | » » » » » » <?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?> | |||
| 50 | <?php if ($this->helper('\Magento\Catalog\Helper\Data')->shouldDisplayProductCountOnLayer()): ?> | 50 | <?php if ($this->helper('\Magento\Catalog\Helper\Data')->shouldDisplayProductCountOnLayer()): ?> | |||
| 51 | <span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label"> | 51 | <span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label"> | |||
| 52 | » » » » » » » » <?php if ($filterItem->getCount() == 1):?> <?php /* @escapeNotVerified */ echo __('item')?><?php else:?> <?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span> | 52 | » » » » » » » » <?php if ($filterItem->getCount() == 1):?> <?php /* @escapeNotVerified */ echo __('item')?><?php else:?> <?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span> | |||
| 53 | <?php endif; ?> | 53 | <?php endif; ?> | |||
| 54 | » » » » » </a> | 54 | » » » » » </a> | |||
| 55 | <?php else:?> | 55 | <?php else:?> | |||
| 56 | <?php if($attributeModel && $attributeModel->getFrontendInput() == 'multiselect'): ?> | 56 | <?php if($attributeModel && $attributeModel->getFrontendInput() == 'multiselect'): ?> | |||
| 57 | <input type="checkbox" disabled="disabled" /> | 57 | <input type="checkbox" disabled="disabled" /> | |||
| 58 | <?php endif; ?> | 58 | <?php endif; ?> | |||
| 59 | <?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?> | 59 | <?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?> | |||
| 60 | <?php if ($this->helper('\Magento\Catalog\Helper\Data')->shouldDisplayProductCountOnLayer()): ?> | 60 | <?php if ($this->helper('\Magento\Catalog\Helper\Data')->shouldDisplayProductCountOnLayer()): ?> | |||
| 61 | <span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label"> | 61 | <span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label"> | |||
| 62 | » » » » » » » <?php if ($filterItem->getCount() == 1):?><?php /* @escapeNotVerified */ echo __('item')?><?php else:?><?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span> | 62 | » » » » » » » <?php if ($filterItem->getCount() == 1):?><?php /* @escapeNotVerified */ echo __('item')?><?php else:?><?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span> | |||
| 63 | <?php endif; ?> | 63 | <?php endif; ?> | |||
| 64 | <?php endif; ?> | 64 | <?php endif; ?> | |||
| 65 | <?php endif; ?> | 65 | <?php endif; ?> | |||
| 66 | </li> | 66 | </li> | |||
| 67 | <?php endforeach ?> | 67 | <?php endforeach ?> | |||
| 68 | </ol> | 68 | </ol> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.